package com.wing.cabinet.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.StorageInventoryInout;
import com.wing.cabinet.model.request.StorageInventoryInoutForm;
import com.wing.cabinet.model.response.*;

import java.util.List;
import java.util.Map;

/**
 * 暂存柜存刀/取刀;存/取维修/回收刀-Service
 *
 * @author
 */
public interface StorageInventoryInoutService extends IService<StorageInventoryInout> {

    /**
     * 添加
     *
     * @param storageInventoryInoutForm
     * @return
     */
    int add(StorageInventoryInoutForm storageInventoryInoutForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StorageInventoryInoutVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<StorageInventoryInoutVO> pageList4app(Page page, Map<String, Object> params);

    Page<StorageInventoryInoutVO> pageList(Page page, Map<String, Object> params);

    Page<StorageInventoryInoutVO> pageList4OldNew(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StorageInventoryInoutVO get4appById(Long id);

    int update4Notify(Integer status, Long notifyUserId,  String notifyUserName,  Long checkResultId,Long supplierId,String supplierName);

    StorageInventoryInoutVO get4appByInOutIdAndSkuCode(Long id, String skuCode);

    /**
     * 暂存存入记录导出/修磨记录导出/报废记录导出
     * @param params
     * @return
     */
    List<StorageInventoryInoutVO> exportList(Map<String, Object> params);
    List<OldNewStorageExportVO> getOldNewStorageExportVOExport(Map<String, Object> params);
    List<TemporaryStorageExportVO> getTemporaryStorageExport(Map<String, Object> params);


    List<StorageRecycleInventoryInoutVO> exportRecycleList(Map<String, Object> params);

    /**
     * 暂存取出记录导出
     * @param params
     * @return
     */
    List<StorageTempInventoryOutVO> exportOutList(Map<String, Object> params);

    void sendMsg();

    /**
     * 暂存存入记录列表
     * @param page
     * @param params
     * @return
     */
    Page<StorageInventoryInoutVO> pageListNew(Page page, Map<String, Object> params);

    /**
     * 修磨记录导出
     * @param params
     * @return
     */
    //List<StorageInventoryInoutVO> ecxportList(Map<String, Object> params);
}
